package com.com.hefei.wdp.rule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;

@Configurable
public class MySelRule {
    @Bean
    public IRule myRule(){
        //return new RoundRobinRule();
        //return new RandomRule();
//        return new MyCustomRule();
        return new RandomRule();

    }


}
